<section class="add-record">
    <?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'id'=>'horizontalForm',
        'type'=>'horizontal',
    ));?>

    <fieldset>
        <legend>
            <?php echo Yii::t('app', 'Edit record') ?>
            <a class="btn-back pull-right" href="<?php echo $this->createUrl('contact/index')?>">← <?php echo Yii::t('app', 'Back to List') ?></a>
        </legend>
        <?php echo $form->dropDownListRow($model, 'id_client', $listClient, array('empty' => Yii::t('app', 'Please select client')))?>
        <?php echo $form->textFieldRow($model, 'first_name'); ?>
        <?php echo $form->textFieldRow($model, 'last_name'); ?>
        <?php echo $form->textFieldRow($model, 'email'); ?>
        <?php echo $form->textFieldRow($model, 'street'); ?>
        <?php echo $form->textFieldRow($model, 'nr_street'); ?>
        <?php echo $form->textFieldRow($model, 'zip_code'); ?>
        <?php echo $form->textFieldRow($model, 'city'); ?>
        <?php echo $form->textFieldRow($model, 'mobile'); ?>
        <?php echo $form->textFieldRow($model, 'phone'); ?>
    </fieldset>
    <div class="form-actions">
        <?php
        $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType' => 'submit',
            'type' => 'primary',
            'label' => Yii::t('app', 'Submit'),
            'icon' => 'plus-sign white'
        ));
        ?>
    </div>
    <?php $this->endWidget();?>
</section>